home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
dfpp01.zip
/
CLOCK.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-21
|
409b
|
21 lines
// ------- clock.cpp
#include "desktop.h"
Clock::Clock()
{
clocktimer.SetTimer(0);
}
void Clock::DispatchEvent()
{
if (clocktimer.TimedOut()) {
// -------- reset the timer
clocktimer.SetTimer(19); // approx. 19 tics/second
// -------- post the clock event
if (desktop.ApplWnd() != NULL)
desktop.ApplWnd()->ClockTick();
}
}